package com.orange.core.pojo.req.order;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CreditShopCartExchangeReq implements Serializable {

    /**
     * 积分商品id
     */
    @NotNull(message = "参数错误")
    private Integer creditProductId;

    /**
     * 兑换数量
     */
    @NotNull(message = "参数错误")
    @Min(value = 1, message = "兑换数量不能小于{value}")
    private Integer count;
}
